package com.sy.creation.factory.abstractfactory;

public class Test {

    public static void main(String[] args) {
        BigCarFactory racingCarFactory = new RacingCarFactory();
        AbstractCar racingCar = racingCarFactory.newCar();
        racingCar.run();

        BigCarFactory vanCarFactory = new VanCarFactory();
        AbstractCar vanCar = vanCarFactory.newCar();
        vanCar.run();

        BigMaskFactory n95MaskFactory = new N95MaskFactory();
        AbstractMask n95Mask = n95MaskFactory.newMask();
        n95Mask.grade();

        BigMaskFactory doctorMaskFactory = new DoctorMaskFactory();
        AbstractMask doctorMask = doctorMaskFactory.newMask();
        doctorMask.grade();
    }
}
